package response

import "SeatSystem/internal/model"

const (
	YES   = true
	NO    = false
	ERR   = "错误"
	DBERR = "未找到该数据项"
)

type Response struct {
	Status bool
	Msg    string
}

type UserResponse struct {
	Rsp  Response
	User model.User `json:"User"`
}

type ClassListResponse struct {
	Rsp       Response
	ClassList []model.Class `json:"ClassList"`
}

type SeatResponse struct {
	ID       int
	CID      int `gorm:"column:cid"` //classId
	SortID   int
	Selected bool
}

type SeatListResponse struct {
	Rsp      Response
	SeatList [][]SeatResponse `json:"SeatList"`
}

type HistoryListResponse struct {
	Rsp         Response
	HistoryList []model.History `json:"HistoryList"`
}

type FeedBackResponse struct {
	Rsp          Response
	FeedBackList []model.FeedBack `json:"FeedBackList"`
}
